/*     */ package com.umeng.common;
/*     */ 
/*     */ import android.content.Context;
/*     */ import java.lang.reflect.Field;
/*     */ 
/*     */ public class c
/*     */ {
/*  11 */   private static final String a = c.class.getName();
/*     */ 
/*  13 */   private static c b = null;
/*  14 */   private static String c = null;
/*     */ 
/*  17 */   private static Class d = null;
/*     */ 
/*  20 */   private static Class e = null;
/*     */ 
/*  23 */   private static Class f = null;
/*     */ 
/*  26 */   private static Class g = null;
/*     */ 
/*  29 */   private static Class h = null;
/*     */ 
/*  32 */   private static Class i = null;
/*     */ 
/*  35 */   private static Class j = null;
/*     */ 
/*     */   private c(String paramString) {
/*     */     try {
/*  39 */       e = Class.forName(paramString + ".R$drawable");
/*     */     } catch (ClassNotFoundException localClassNotFoundException1) {
/*  41 */       Log.b(a, localClassNotFoundException1.getMessage());
/*     */     }
/*     */     try
/*     */     {
/*  45 */       f = Class.forName(paramString + ".R$layout");
/*     */     } catch (ClassNotFoundException localClassNotFoundException2) {
/*  47 */       Log.b(a, localClassNotFoundException2.getMessage());
/*     */     }
/*     */     try {
/*  50 */       d = Class.forName(paramString + ".R$id");
/*     */     } catch (ClassNotFoundException localClassNotFoundException3) {
/*  52 */       Log.b(a, localClassNotFoundException3.getMessage());
/*     */     }
/*     */     try {
/*  55 */       g = Class.forName(paramString + ".R$anim");
/*     */     } catch (ClassNotFoundException localClassNotFoundException4) {
/*  57 */       Log.b(a, localClassNotFoundException4.getMessage());
/*     */     }
/*     */     try {
/*  60 */       h = Class.forName(paramString + ".R$style");
/*     */     } catch (ClassNotFoundException localClassNotFoundException5) {
/*  62 */       Log.b(a, localClassNotFoundException5.getMessage());
/*     */     }
/*     */     try {
/*  65 */       i = Class.forName(paramString + ".R$string");
/*     */     } catch (ClassNotFoundException localClassNotFoundException6) {
/*  67 */       Log.b(a, localClassNotFoundException6.getMessage());
/*     */     }
/*     */     try {
/*  70 */       j = Class.forName(paramString + ".R$array");
/*     */     } catch (ClassNotFoundException localClassNotFoundException7) {
/*  72 */       Log.b(a, localClassNotFoundException7.getMessage());
/*     */     }
/*     */   }
/*     */ 
/*     */   public static synchronized c a(Context paramContext)
/*     */   {
/*  80 */     if (b == null) {
/*  81 */       c = c != null ? c : paramContext
/*  82 */         .getPackageName();
/*  83 */       b = new c(c);
/*     */     }
/*  85 */     return b;
/*     */   }
/*     */ 
/*     */   public static void a(String paramString)
/*     */   {
/*  98 */     c = paramString;
/*     */   }
/*     */ 
/*     */   public int b(String paramString)
/*     */   {
/* 109 */     return a(g, paramString);
/*     */   }
/*     */ 
/*     */   public int c(String paramString)
/*     */   {
/* 120 */     return a(d, paramString);
/*     */   }
/*     */ 
/*     */   public int d(String paramString)
/*     */   {
/* 131 */     return a(e, paramString);
/*     */   }
/*     */ 
/*     */   public int e(String paramString)
/*     */   {
/* 142 */     return a(f, paramString);
/*     */   }
/*     */ 
/*     */   public int f(String paramString)
/*     */   {
/* 153 */     return a(h, paramString);
/*     */   }
/*     */ 
/*     */   public int g(String paramString)
/*     */   {
/* 164 */     return a(i, paramString);
/*     */   }
/*     */ 
/*     */   public int h(String paramString)
/*     */   {
/* 175 */     return a(j, paramString);
/*     */   }
/*     */ 
/*     */   private int a(Class<?> paramClass, String paramString)
/*     */   {
/* 186 */     if (paramClass == null) {
/* 187 */       Log.b(a, "getRes(null," + paramString + ")");
/* 188 */       throw new IllegalArgumentException(
/* 189 */         "ResClass is not initialized. Please make sure you have added neccessary resources. Also make sure you have " + 
/* 190 */         c + 
/* 191 */         ".R$* configured in obfuscation. field=" + paramString);
/*     */     }
/*     */     try
/*     */     {
/* 195 */       Field localField = paramClass.getField(paramString);
/* 196 */       return localField.getInt(paramString);
/*     */     }
/*     */     catch (Exception localException) {
/* 199 */       Log.b(a, "getRes(" + paramClass.getName() + ", " + paramString + ")");
/* 200 */       Log.b(a, 
/* 201 */         "Error getting resource. Make sure you have copied all resources (res/) from SDK to your project. ");
/* 202 */       Log.b(a, localException.getMessage());
/*     */     }
/* 204 */     return -1;
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.common.c
 * JD-Core Version:    0.6.2
 */